<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>

<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>

<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
	var theform = window.document.form1
	
	if (valid.isEmpty("newPrice","special price")){
		return false;
	}else{
		return true;
	}
}
</script>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
  <table width="100%" cellspacing="0" cellpadding="2">
    <tr bgcolor="#E4E4E4"> 
      <td  width="20%">&nbsp;Add Special Product</td>
      <td  width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td  width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Product:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
      &nbsp; <font color="#FF0000"> *</font> </td>
    </tr>

	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Special Price:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;&nbsp;
        <input name="newPrice" type="text" id="newPrice" value="{$newPrice}" size="20" maxlength="80">
        <font color="#FF0000"> *</font>
        </td>
    </tr>
 <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Expiry Date:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;&nbsp;
        <input name="expireDate" type="text" id="expireDate" value="{$expireDate}" maxlength="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')">
        <font color="#FF0000"> *</font> </td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
      <td height="23"></td>
      <td height="23" colspan="2">
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
        <input type="reset" name="Reset" value="Reset">
        <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
      <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
      <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
    </tr>
  </table>
</form>
</body>
</html>